<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	site="http://javascript.internet.com";
	function combineMenus(frm,menu1,menu2)
	{
		for(var i = 0; i < document.menufrm.nume1.length; i ++)
		{
			if(document.menufrm.nume1[i].checked)
			{
				str = document.menufrm.nume1[i].value;
				break;
			}
		}
		for(var i = 0; i < document.menufrm.nume2.length; i ++)
		{
			if(document.menufrm.nume2[i].checked)
			{
				str += document.menufrm.nume2[i].value;
				break;
			}
		}
		alert(str);
	}
</script>
</head>
<body>
<form name="menufrm">
<p>
	<input type="radio" name="nume1" value="chevy" checked="checked">Chevy
	<input type="radio" name="nume1" value="ford"> ford
	<input type="radio" name="nume1" value="dodge">dodge
	<input type="radio" name="nume1" value="olds">olds
</p>
<p>
	<input type="radio" name="nume2" value="1998" checked="checked">1998
	<input type="radio" name="nume2" value="1999">1999
	<input type="radio" name="nume2" value="2000">2000
	<input type="radio" name="nume2" value="2001">2001
</p>
<input type="button" value="Select" onclick="combineMenus(this.form, this.form.menu1,this.form.menu2)">
</form>

</body>
</html>